<?php echo $this->render($this->includeDir . '/toolbar.php'); ?>
<?php
$config = new Zendvn_Controller_Config(array(
    'module' => 'default',
    'fileConfig' => 'add-event.ini'
));
$pictureConfig = $config->getConfig('image');
$title = $this->Item['title'];
$type = $this->Item['type'];
$bgColor = $this->Item['bg_color'];
$textColor = $this->Item['text_color'];
$address = $this->Item['address'];
$location = $this->Item['location'];
$date = $this->Item['date'];
$time = $this->Item['time'];
$fullName = $this->Item['full_name'];
$description = Zendvn_Filter_Filter::filterContent($this->Item['description'], 'filter');

if (file_exists($pictureConfig['thumbDir'] . '/' . $this->Item['image']) && !empty($this->Item['image'])) {
    $pictureUrl = $pictureConfig['thumbUrl'] . '/' . $this->Item['image'];
    $pictureUrlOrginal = $pictureConfig['uploadUrl'] . '/' . $this->Item['image'];
} else {
    $pictureUrlOrginal = $pictureUrl = FILE_URL . '/images/no-image.png';
}

$picture = '<a href="' . $pictureUrlOrginal . '" onclick="return fancyBox(this)"><img src="' . $pictureUrl . '" alt="" width="180" /></a>';

$img = ($this->Item['status'] == 'active') ? 'active.png' : 'inactive.png';
$src = "images/small-icons/" . $img;
$status = '<img src="' . $src . '" />';

$img = ($this->Item['feature'] == 'active') ? 'active.png' : 'inactive.png';
$src = "images/small-icons/" . $img;
$feature = '<img src="' . $src . '" />';

$arrRow = array(
    array(
        'label' => $this->translate('Title'),
        'info' => $title
    ),
    array(
        'label' => $this->translate('Picture'),
        'info' => $picture
    ),
    array(
        'label' => $this->translate('Type'),
        'info' => $type
    ),
    array(
        'label' => $this->translate('Background Color'),
        'info' => $bgColor
    ),
    array(
        'label' => $this->translate('Text Color'),
        'info' => $textColor
    ),
    array(
        'label' => $this->translate('Description'),
        'info' => $description
    ),
    array(
        'label' => $this->translate('Address'),
        'info' => $address
    ),
    array(
        'label' => $this->translate('Location'),
        'info' => $location
    ),
    array(
        'label' => $this->translate('Date'),
        'info' => $date
    ),
    array(
        'label' => $this->translate('Time'),
        'info' => $time
    ),
    array(
        'label' => $this->translate('Full Name'),
        'info' => $fullName
    ),
    array(
        'label' => $this->translate('Status'),
        'info' => $status
    ),
);

?>
<div id="element-box">
    <div class="m">
        <div class="form-table">
            <fieldset class="admin-fieldset">
                <legend class="admin-legend">Form Detail</legend>
                <table width="100%" border="0">
                    <?php echo $this->partialLoop('row-info.php', $arrRow); ?>
                </table>
                <div class="clr"></div>
            </fieldset>
        </div>
        <div class="clr"></div>
    </div>
</div>
